﻿<UserControl x:Class="Microsoft.Research.ScientificWorkflow.UIDesigner.SubsectionCollapsedCtrl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" VerticalAlignment="Top" Margin="30,5,35,5" HorizontalAlignment="Center">
    <UserControl.Resources>
        <Style x:Key="plusButtonWF" BasedOn="{x:Null}" TargetType="{x:Type Button}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <Grid>
                            <Rectangle Fill="#FFFFFFFF" Stroke="#FF94B3C4" RadiusX="3" RadiusY="3" x:Name="rectangle"/>
                            <Rectangle Fill="#FF3B6A7A" Stroke="{x:Null}" Margin="5.996,2.998,6.004,3.002"/>
                            <Rectangle Fill="#FF3B6A7A" Stroke="{x:Null}" Margin="5.996,2.998,6.004,3.002" RenderTransformOrigin="0.5,0.5">
                                <Rectangle.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="90"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Rectangle.RenderTransform>
                            </Rectangle>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsFocused" Value="True"/>
                            <Trigger Property="IsDefaulted" Value="True"/>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter Property="Fill" TargetName="rectangle" Value="#FFCDEAF1"/>
                            </Trigger>
                            <Trigger Property="IsPressed" Value="True"/>
                            <Trigger Property="IsEnabled" Value="False"/>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>
    <Grid Name="grdMainSubSection">
        <Border Name="brdr1" BorderBrush="#FFB5CAD5" BorderThickness="1,1,2,2" CornerRadius="5,5,5,5" Margin="-12,0,15,18" VerticalAlignment="Bottom" Height="40">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFF6FDFF" Offset="0"/>
                    <GradientStop Color="#FFC5DFE8" Offset="1"/>
                </LinearGradientBrush>
            </Border.Background>
        </Border>
        <Border Name="brdr2" BorderBrush="#FFB5CAD5" BorderThickness="1,1,2,2" CornerRadius="5,5,5,5" Margin="-8,0,10,12" VerticalAlignment="Bottom" Height="40">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFF6FDFF" Offset="0"/>
                    <GradientStop Color="#FFC5DFE8" Offset="1"/>
                </LinearGradientBrush>
            </Border.Background>
        </Border>
        <Border Name="brdr3" BorderBrush="#FFB5CAD5" BorderThickness="1,1,2,2" CornerRadius="5,5,5,5" Margin="-4,0,5,6" VerticalAlignment="Bottom" Height="40">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFF6FDFF" Offset="0"/>
                    <GradientStop Color="#FFC5DFE8" Offset="1"/>
                </LinearGradientBrush>
            </Border.Background>
        </Border>
        <Border Name="brdrMainDisp" BorderBrush="#FFB5CAD5" BorderThickness="1,1,2,2" CornerRadius="5,5,5,5" Margin="0,0,0,0" VerticalAlignment="Bottom" Height="40">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFF6FDFF" Offset="0"/>
                    <GradientStop Color="#FFC5DFE8" Offset="1"/>
                </LinearGradientBrush>
            </Border.Background>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="11*" />
                    <RowDefinition Height="26*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="10.313"/>
                    <ColumnDefinition Width="27.687"/>
                    <ColumnDefinition Width="132*"/>
                    <ColumnDefinition Width="18*"/>
                    <ColumnDefinition Width="14"/>
                    <ColumnDefinition Width="9"/>
                </Grid.ColumnDefinitions>
                <Rectangle x:Name="rectangleRight" Fill="#FFFFFFFF" Stroke="#FF94B3C4" HorizontalAlignment="Right" Margin="0,2.5,-5,0" VerticalAlignment="Top" Width="10" Height="10" Grid.Column="5" Grid.Row="1"/>
                <Rectangle x:Name="rectangleLeft" Fill="#FFFFFFFF" Stroke="#FF94B3C4" HorizontalAlignment="Left" Margin="-5,2.5,0,0" VerticalAlignment="Top" Width="10" Height="10" Grid.Row="1" />
                <Image Name="imgSubSectionIndicator" Source="/Microsoft.Research.ScientificWorkflow.TridentUtilities;component/Images/ScientificWorkflow/DataSources.png" HorizontalAlignment="Center" Grid.Column="1" Stretch="None" Margin="0,7.5" Grid.RowSpan="2" Width="19" />
                <TextBlock Name="txtBlkHeader" HorizontalAlignment="Left" VerticalAlignment="Center" FontWeight="Bold" TextWrapping="NoWrap" TextTrimming="CharacterEllipsis" Grid.Column="2" Margin="0,2.54,24.62,2.54" Grid.RowSpan="2" MaxWidth="150" />
                <Button Name="btnExpand" HorizontalAlignment="Left" Style="{DynamicResource plusButtonWF}" Width="14" Content="Button" Height="14" VerticalAlignment="Top" Grid.Column="4" Grid.Row="1"/>
            </Grid>
        </Border>
    </Grid>
</UserControl>
